import type { Meta, StoryObj } from "@storybook/react";
import Example, { Type } from "./example";

const meta: Meta = {
  title: "libs/rsa",
  component: Example,
};

export default meta;

type Story = StoryObj<typeof Example>;

export const Encrypt: Story = {
  args: {
    inputStr: "123456",
    publicKey: "",
    privateKey: "", //私钥
    type: Type.Encrypt,
  },
};

export const Decrypt: Story = {
  args: {
    inputStr: "",
    publicKey: "", //公钥
    privateKey: "", //私钥
    type: Type.Decrypt,
  },
};
